package utils

import (
	"fmt"
	"math/rand"
	"time"
)

/**
创建订单ID
*/
func GetOrderId(channel string) string {
	randNum := fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000))
	return fmt.Sprintf("%v%v%v", channel, time.Now().UnixNano(), randNum)
}
